//
//  WellConfig.h
//  AlumniBook
//
//  Created by 喂！ on 2018/10/24.
//  Copyright © 2018年 well. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface WellConfig : NSObject

typedef void (^mutableDicBlock)(NSMutableDictionary *dic);

typedef void (^dicBlock)(NSDictionary *dic);

typedef void (^stringBlock)(NSString *string);

typedef void (^mutableArrayBlock)(NSMutableArray *arr);

typedef void (^intBlock)(NSInteger info);

typedef void (^idBlock)(id object);

typedef void (^voidBlock)(void);


/**
 单例模式
 */
+(WellConfig *)sharedInstance;

/**
 获取webService接口地址
 */
+(NSString *)getWebServiceUrl;

/**
 获取WebAddress地址
 */
+(NSString *)getWebAddress;

/**
 获取文件服务器地址
 */
+(NSString *)getFileWebAddress;

/**
 获取文件服务器接口地址
 */
+(NSString *)getFileWebServiceUrl;

@property(copy,nonatomic)NSString *homeDir;                                 //根目录位置  document目录
@property(copy,nonatomic)NSString *localDir;                                //本地文件位置 document/localFile
@property(nonatomic,copy)NSString *webAddress;                              //服务器地址
@property(nonatomic,copy)NSString *fileWebAddress;                          //文件服务器地址
@property(nonatomic,copy)NSString *shareUrl;                                //分享用地址
@property(nonatomic,copy)NSString *sharePicName;                            //分享用二维码图片
@property(nonatomic)NSInteger currentNetStatus;                             //当前网络状态
@property(nonatomic,retain)NSMutableDictionary *loginDic;                     //登录后返回的内容
@property(nonatomic,copy)NSDictionary *currentProject;
@property(nonatomic,copy)NSString *loginKey;                                //文件服务器地址
@property(nonatomic)BOOL isUnityInit;                                       //判断是否初始过
@property(nonatomic,retain)UIAlertView *unityAlert;                         //Unity唤起的提示框
@property(nonatomic,assign)BOOL unityLog;                                //Unity主动唤起的log 关闭也是unity主动唤起的log
@property(copy,nonatomic)NSString *gameObjectName;                          //Unity发送消息物体名
@property(nonatomic,retain)NSMutableArray *createFunctionArr;
@property(nonatomic,copy)NSString *localDevice;                             //当前机器的apnsId

@property(nonatomic,retain)NSMutableArray *needInsertArray;
//@property(nonatomic)BOOL isUnityShow;                                       //Unity所在ViewController是否在可见状态

@end
